<%@page import="com.itwill.ecom.receiver.ReceiverServiceImpl"%>
<%@page import="com.itwill.ecom.receiver.ReceiverService"%>
<%@page import="com.itwill.ecom.receiver.ReceiverBeans"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/plain; charset=UTF-8" pageEncoding="UTF-8"%>

<%
	WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(application);
	ReceiverServiceImpl receiverService = (ReceiverServiceImpl)context.getBean("receiverService");
	
	int o_no = Integer.parseInt(request.getParameter("o_no"));
	ReceiverBeans resultReceiver = receiverService.getReceiver(o_no);
%>

[{
"receiver_name" : "<%= resultReceiver.getReceiver_name() %>",
"receiver_email" : "<%= resultReceiver.getReceiver_email() %>",
"receiver_tel" : "<%= resultReceiver.getReceiver_tel() %>",
"receiver_phone" : "<%= resultReceiver.getReceiver_phone() %>",
"receiver_addr1" : "<%= resultReceiver.getReceiver_addr1() %>",
"receiver_addr2" : "<%= resultReceiver.getReceiver_addr2() %>",
"receiver_memo" : "<%= resultReceiver.getReceiver_memo() %>",
"receiver_date" : "<%= resultReceiver.getReceiver_date() %>"
}]